<include file="Public:header" />
<body>
<div class="main" >
	<div id="navigation"> &nbsp;当前位置 > 用户管理 > 管理员管理</div>
	<div class="mainmenu"><a href="__URL__/add">添加管理员</a></div>
	<table id="maintable">
		<tr>
			<th>账 号</th><th>姓 名</th><th>创建时间</th><th>状态</th><th>操作</th>
		</tr>
		<volist name="list" id="vo">
			<tr>
			 <td>{$vo.account}</td>
			 <td>{$vo.name}</td>
			 <td>{$vo.ctime|date="Y-m-d",###}</td>
			 <td><?php echo $vo['status']?'禁用':'启用'; ?></td>
			 <?php 
			 if($vo['account']!='admin'){
			 		echo $vo['status']?'<td><a href="__URL__/doUp/id/'.$vo['id'].'"><img src="../Public/images/allow.gif" title="启用"/></a>':'<td><a href="__URL__/doAudit/id/'.$vo['id'].'"><img src="../Public/images/update.gif"  title="禁用"/></a>';
			 		echo '&nbsp;<a href="__URL__/edit/aid/'.$vo['id'].'"><img src="../Public/images/b_edit.png" title="修改"/></a>&nbsp;&nbsp;<a href="javascript:del('.$vo['id'].')"><img src="../Public/images/b_drop.png"  title="删除"/></a></td>';
			 }else{
		   		echo '<td>默认</td>';
		   } 
		   ?>
		  </tr>
	  </volist>
		
  </table>
  <div class="mainmenu">{$page}</div>
</div>
<script type="text/javascript">

function del(id){

	if (window.confirm('确实要删除选择项吗？'))
	{	
		
		location.href = "__URL__/del/id/"+id;
	}
}
</script>
</body>
</html>